/*Scripts que intentan ser usados de manera general por todo el sistema.
 * 
 * */

function validateEmail(email) 
{
    var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    return re.test(email);
}

/* Container is a JQuery Object to use as the container for the Navigation Bar
 * i.e. insertNavigationBar($( "#div_navBar" ));
 */

function insertNavigationBar(container)
{
    $.get( "includes/tools/navBar.php", function( data )
        {
            container.html( data );
        }
    );
}

function insertLoginAbility(container)
{
    $.get( "includes/tools/login.php", function( data )
        {
            container.html( data );
        }
    );
}